package com.intellagric.service.agritech;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.module.agritech.AgtArticleVo;
import com.intellagric.pojo.AgtArticle;

/**
 * @Author: cwq
 * @Date: 2019/2/21 15:51
 * @Description:
 */
public interface ArticleService {
    //增加
    ResponseMessage addArticle(AgtArticle article);

    //删除
    ResponseMessage deleteArticle(String id);

    //修改
    ResponseMessage editArticle(AgtArticle article);

    //查询
    AgtArticle getArticleById(String id);
    LayuiDataGridResult getArticleList();

    LayuiDataGridResult getArticleByPage(int page, int limit);

    LayuiDataGridResult getArticleListByVo(AgtArticleVo agtArticleVo, int page, int limit);
}
